package com.mr.base.alpha.api.fallback;

import com.mr.base.alpha.api.CommonFeign;
import com.mr.base.core.alibaba.vo.Result;
import com.mr.base.core.common.enums.CodeEnum;
import com.mr.base.core.common.vo.OptionsVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class CommonFeignFallbackClient implements CommonFeign {

    @Override
    public Result<List<OptionsVO>> sites() {
        log.error("feign远程调用系统用户服务异常后的降级方法");
        return Result.failed(CodeEnum.SYSTEM_ERROR_B0220);
    }
}
